Fix error where the value test was assigning value instead of testing equality.