fixed bugs in unit testing and class file for score