Added a test for prevent regression of the fixed bug