Tested and added unit testing

added unit tests for 100% code coverage