add resource tests