Added resource test cases

Fix #365 
@naegelyd 
Signed-off-by: Sheik Hassan <solergiga@yahoo.com>
I think the flake 8 is with the other assesment variable on line 30. The object itself is never used after creating.