Added tests for indexed class