tests for initialisation and termination of datasource