fix resources view unit tests