Some tests for datalayer.