WIP trying to fix all the karma tests. not going too well.
Having a break from trying to test relations directive as i'm demoralised.