Use the correct domain for the tests and nest the before block

Make sure our environment variables are properly cleared.