Fixed controller test for new libraries index behaviour