Remove unused variable
Add test cases for order and coefficient determination