fix tests for pr #357 to resolve #287

fix tests for pr #357 to resolve #287