Added tests for Ended