Added tests to reproduce the bug related on issue #1036 (GitHub)