spring test codes