removes unintended named var function from test

- getFunctionName now returns '' instead of undefined
- adds extra function and class tests