add helper and spec test.