Fixed case where there are duplicate value arguments
Added unit test to demonstrate duplicate tokens