Make negative test cases to handle errors properly, check tokens in
    positive ones, don't hardcode port number