Macro to log with a user when test controllers