- Fixed bug wrt function name not showing in call to
  non-function error message
- Added tests