adds tests for valid token generation cases