Minor modification to test code