add tests for generateToken connection data #11