added unit test to check preserve request body logic