Added tests for new indexing and added matrix indexing functioning.