remove broken tests and dead code