test insertResource method