solves test equation properly