Fixed tests.

Split unit tests into datatypes and behaviour.