Move corpus test infrastructure into spec/support