Rewrite local functionality tests so they don't need root for any tests