Newton solver test