make server handle all tests when run as batch