Add test singleton method to Shape class.