added test routine to the server
fixed errors when nota is NC