Synchronise access to nr variable
Use local server object for test-cases