Adds test macro to conform to DRY