Fix lesson controller when test failed