Refactored inner class exposing.
Ported tests to nosetest format.