tests: Move Autotest compatibility macros into tests directory.