Test for creating new resource