added testQuad.c for unit testing the quad function