enable full error_reporting in tests, fix a variable reference error