create tokenable module for generate token and refactor related tests