fixed test for #188 and #169