Assign and List directive fixes and tests

null = file is always false here, because project.getFile never returna null.