inner class tests