unit tests for methods implemented in this pull request