Added nonetype exceptions to server.py, changed a testcase in value_search