Added resource test cases

Fix #365 
@naegelyd 
Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
Period at end of comment. Make sure all other comments in this PR end in a period as well.