Corrected errors found in test during the code review