Adding missing tests of sendFile in Controller
Adding missing validation in sendFile