A bit of DlxLib tidy up and added some unit tests