Separate tests from library code