[#70]: Fix DAO initialization & configure bean factory for test cases