added a test case and modified makefiles, minor