Fixed defined view test grammar and added define 'viewName' event emit t...

Fixed defined view test grammar and added define 'viewName' event emit test

Refactored 'should add render queue within the runloop' test