added test after bug report