Added tests for goal and search tracking