Move tests to testthat's new preferred location for CRAN compatibility
Merge pull request #10 from ajdm/testlocation

Move tests to testthat's new preferred location for CRAN compatibility
teach diagonal to use the 'diagonal' attribute if a matrix has one

* closes #14
* could help with #8
fix and test returning of diagonal attribute
complain when trying to fetch diagonal of non square matrix