Code cleanup in status.utils.get_statistics()
Update unittests in bi module