Implemented the test_qi.m user story for computing quality indicators.