Formed valid unit test cases. Currently failing. Need to fix the code to pass the test cases.