fix tests for pr #357 to resolve #287