Remove unneeded test code