fix last dereference error
move tests to a separate file
fix symbols