move tests to same package as library; added a Main 'test'