Add tests for the calling nested shutdown fix

Summary: More tests for 6bba8967d32109310e58720e2f89cb13857a769f
Closes #3904

Reviewed By: @ptarjan

Differential Revision: D1598798

Pulled By: @JoelMarcey