enhance vad routine, add new test case