adding nested classes test