correct badly written tests