add unit test for spider