fix compile error
add test for linear system