fix resource tests