added tests for inheritance using Object.create() and classes containing a "next" method