Added Test ToString and fixed IsClassCommand