ordered test for calculator