General Adjustments and Adding tests for method calculatePercentageForAttendance