Added hint test, fixed errors