Refactor datatypes tests into separate test cases.