added tests to check hashing, added ability to ger raw request for testing