added test cases, avoid exception on empty scorecard