added quadtest method