Revert "Revert "add test""

This reverts commit bc2d320b92361ace31c05e1c968d7956e3239370.
Revert "add test"

This reverts commit 08a46d536185c6620fbfdc4367e05678994d09ba.