Revert "rewrite test"

This reverts commit ee87151179030895294b750a25932c44a1f2a3cb.