Added test for function 'ring'