added setup and teardown to test