fixed an issue with a unit test when running in Spotify's environment