added some tests related to #98
fixes #95