moving bad code to test package