add test for datamanager