added some new tests, fixed bug in parsing datatypes