Move error handling macros to common.h

Rename test_gerrorf.c to test_error_handling.c