Added opensearch routes test and individual tests for searching via GET and POST separately. Fixed incorrect assignment in gen_query.