unit tests for scoring logic