remove unused code in tests