Fix embargo middleware with tests
Merge pull request #5141 from edx/will/fix-embargo-tests

Fix embargo middleware with tests