generating flag_definitions.h from node version

- deleted hard coded definitions
- updated tests
- logging meta and flag list in tests to catch property access bugs