added tests for 90% coverage