Add test for indefinite depth
Fix setting depth to null, i.e. indefinite depth
v0.3.1