moved test code to separate file