simplify and update rails tests

@jamesarosen