FTP: Adds more unit tests and fix exists() implementation in DAO