added application tests. creates one. problem with toAPI for arrays with the ids not being returned as string, so need to fix this