Added simple tests

Fixed dust parser code.