Refactored server to take file. Added teardown to test fixture.