Add tests for score matrix functions