moved test code to tests
rebuild