Issue #277 - Fix SOP violation in tests (session cookies will now work)

BIG THXXXXXXXXXXXXXXXXXXX to @vladikoff