Two men have pleaded not guilty to breaching the National Security Act by assisting the Hong Kong intelligence service.