add unit tests for bug in task #71