Fixes tests due to code changes. Adds empty file received test