tests for load balancer resources

Simple test of creating a load balancer, as well as an associated instance.

I also took the opportunity to move a few things into the test helper to avoid duplication.