Updated test framework to throw errors if compile fails