You are trying to pass a function as literal as described here. You end up with test prop being String... You should use : to indicate dynamic binding as follows:
test
:
<child-component :test="test"><child-component>"