Adding tests for express server, there is a bug where closing the server after sending a file causes an exception. I will need to get back to that later.