Remove invalid test code