improved testcases.R
Merge branch 'master' of https://github.com/jeffreydarling/243group
fixed as.matrix to matrix in initg