Added some test helpers.