removed unused code in tests