fixed zk authentication, added test setup