added tests/check_lsqadj.c