test: add tests for INT32_MIN / -1 and INT64_MIN / -1

Redmine: refs #2307