added test cases for data sourec factory bean