move unit tests to test.framework