added test to check the bug. (closes #25, fixed in commit related to #24)