Added unit testing framework. Fixed bugs in diag, diagm, *, / atoms.