```ruby
require 'test/unit'
require 'yaml'
require 'fileutils'
require File.dirname(__FILE__)+'/../lib/ownet.rb'

class Test::Unit::TestCase  
  def with_fake_owserver
    pid = fork do 
      exec("owserver", "--fake", "1F,10", "--foreground")
    end
    sleep 1 # Potential timing bug when the system is under load
    yield
    Process.kill("TERM", pid)
    Process.waitpid(pid)
  end
end
```

Test to see if owserver is installed.
user
```ruby
require 'test/unit'
require 'yaml'
require 'fileutils'
require File.dirname(__FILE__)+'/../lib/ownet.rb'

class Test::Unit::TestCase  
  def with_fake_owserver
    assert(system("owserver --version > /dev/null 2>&1"), 
           "owserver not installed")

    pid = fork do 
      exec("owserver", "--fake", "1F,10", "--foreground")
    end
    sleep 1 # Potential timing bug when the system is under load
    yield
    Process.kill("TERM", pid)
    Process.waitpid(pid)
  end
end
```
assistant