added token and counter tests