fix layout in creation of vt
add integration test