Reduce extension tests boilerplate