test with failure depended on working time and shift. Seems towork correctly, but calculation of proportions is problematic. To check