check vpn: unit tests

Assorted unit tests using shunit2