simple tests of resource APIs