added test for resource

Signed-off-by: mido0258 <filo17@centrum.cz>