Get correct name into file to blob code and updated tests (Fix #24)