Fix bug when compilation error didn't interrupt test
Implement TODO