Added tests for ORM lifecycle without uploaded file