add comprehensive test suite for resources
add comprehensive test suite for classes.