Fixing tests when using esent