add unit test for getbulk