add singleton, prototype beans and test codes in spock