Macro for in-memory/file buffer source unit test