adding tests
added testcoverage