The utility test function testByPolling is asynchronous but it wasn't waited, making some tests false positive. When fixing it, I figure out that there were also name conflict with expect (jest reserved assertion and function argument)
testByPolling
expect