Made encrypting the header optional
reverted test-authtoken to previous behaviour, created new test using encrypted token and initialization method for it