Build failure caused by test corruption

Changed spec code so that it wasn't depending on the order of
method instances retrieved from the DB.