Adding test for analyze with user-given objective