springtools: bean definition moved to type reference, tests

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>