check solution
add test for solution check