fix insight tests
fix karma tests