Adds a test which checks that rollback works properly in case when a bad value of the initial_token function is provided.