fix typo...now can handle ../ correctly
fix for unit test
fix all unittest after val() interface change