Writing fail test and code to pass ex5 method