add test
fix to not use reflection
Merge pull request #49 from hidey/fix_StrictModeCompat

Fix strict mode compat