Added spring context and logic to read it in (for test cases only).
Added additional test cases.