Added simple FooTest to demonstrate failure. Refactored code.