tests for upto method and its respective class