Move the mock server in its own file
Add basic tests for the directory handler