Fixed tab vs. spaces and put testcase
for quality score into separate method.