fixed some test cases. also changed how assettype are passed from the sources to the datasource_controller.