Implements concurrent write test

- Moved the server launching logic for tests into ServerTestCase to make it
  simpler to work with.
- Added a simple test case that involves multiple writers writing to single
  file.  The test will fail if a true concurrent write happens.