chapter test debug fix