Remove duplication from browser tests

Remove unnecessary duplication from radio group model bindings by introducing a helper method that takes the function that creates the model and the corresponding two model values that the radios represent.