added tests for complete coverage