Remove layer_by_index from expected results in tests