Fixed insertCompletion bug, tested defining function expression