added some optional testing code for test 5.