deletion, visualblock switching bugs fixed, tests updated accordingly