added unit tests and changelog entry