Secure Comparison and Interval Test Protocols based on Three-party MPC