spring 3.2 with test function