Issue 502 : test case and fixing try

Hello,

As mentioned Issue #502, this is test case. Pull request contains 2 commit :
 1. new _Junit_ file with test case
 1. Try to fix issue... 

Thanks