added test coverage including issue #4