unit testing almost working again... angularAMD bugs need squashing