correcting and testing framework