Rewrote test code for Test 5.