[PATCH] reg/tests: Pass __FILE__ from the caller so the correct filename is shown in error logs