remove hacky tests from library code