Solved bug in assertEquals() when there is no callback.