added trace_test to fvar/matrix