Spherical Collapse:

First test

Second test

Boundaries are not the problem!

Third test