fix resource tests that may fail