Class and Method tests

* also fix instance of flash message that wasn't being captured
* A couple of fixes for Classes and Namespaces