purge outdated tests and dead code