Add test and close #198 (related with #152)

Issue was fixed in 956a017e2df35967d22a4e7e1b3c1e7d778a878f.
Just added a test to make sure everything was fine.