Fixed bug preventing the same class method to be expected more than once.