added insurance and modified tests for it