added unit tests for SourceDataRepositoryFactoryBean
fixed issues discovered in unit testing