Foreign lawyers allowed to practise in NSW after test