Resource testing

tests and skeleton for resources