Added the test dependency so that when --with-check is used, the files in the test directory get built first before anything.