adds subclassof() function and assert macro for testing class inheritance