[Test] Add test environment for functional tests

Including integration tests which is functional in the sense that
they need the whole system booted.
Merge pull request #146 from ezsystems/test_env

[Test] Add test environment for functional tests