moved test to a separate file