change constants in file_calls.h to macros and add some tests