fix lower case inner class lookup.

it appears it was commented out at some point and didn't get re-added
add tests for static macros