Fixed sorting controller test