The following branch needs to be covered by unit tests as well: https://github.com/fabric8-analytics/fabric8-analytics-server/blob/2202a57d0d080fe6bf92937251161fe5ead3c7c1/bayesian/api_v1.py#L399