Range finder test code.