Check errors in tests