Added resource test cases

Fix #365 
@naegelyd 
Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
Will this `hpo_id=1` fit on the previous line? If so, move it up there.