[UPDATE] added strict mode toggle. [TESTS] added corresponding tests.