Unittesting for issue #48