unit tests

Work in progress, in try to add unit tests to dynohost