removing invalid tests and removing unused function