Testing of class of Dart