Bug fixing: user-given objective field was not used
Bug fixing: using dataset objective field by default in analyze
Adding test for analyze with user-given objective