Fixed up resource class' tests