test made more functional
not used datasource() bean factory method converted into private method in the configuration