Added tests for Location header correctness in responses, cleaned up unused imports