adding test coverage for debug mode

- adding tests for debug mode
- adding strict mode flag