Adding code coverage

Fixed tabs in file, and added testcase.