Add tests for needstorunfinalized