Remove redundant testing code