add quad_test function to use primitives