Added test for direct file upload using phantom per #324

#324