Refactor the irb tests

Remove a useless tests and put the common irb instances as instance
variables.