add test to be sure that .decorator function is properly parsed