added passcode and server/client tests