Add isEqual to token, add functional test that caught a few cases.