Updated test file. Also updated PlotwattError class to handle exception messages.