removed alltestpassed flag
added moment
logic to return new or existing problem