Add tests for #getResource in ResourceStore