vlans tests and context manager