tests/RingBuffer: use Nil/NotNil assertions.

Also add one to ensure .get() returns nil after .discardObjects().