Revert "Revert "add test""

This reverts commit 58eebbb2d959192a26222479c12486ecfb0335f0.