factored tests to own package