First tests for bearer token saving and validation.