updated the test script, and cmakelist file