test code for SERVER