adding test coverage for debug mode

- adding tests for debug mode
- adding strict mode flag
- increasing coverage based on istanbull
- fixing issue on context placement that have the same weight