added wee error checking to test case 01