moved unit tests to separate test file