update dir in test
fix a bug