Added check if bundle/body function is propery closed with ')' 

+ unit test