Enforce snapshot limit when publish happens

Does default limit of 0 mean that we never keep any snapshots? If so can you add a test that validates that behavior if no snapshot limit is explicitly provided (there is only a test case for snapshotLimit=3).