Fix network user management and add functional tests