add vpd_test. refactoring trim, get_line