unit test for score calc