Resolves issues #37 and #38.
- Tests added for status middleware
- Tests added for error middleware