Remove superfluous testing code