add: test for bean with generic param
fix: removed dead code from another branch