junit tests for giveHint()