unit tests for getSimilar()