fixed bugs in test script

Fixed incomplete namespace and directly include base file for testing.