Add spring test for singleton and prototype. also test the Threadlocal
modifier.