Writing some unittests to make sure the token expiry logic works as it should.