Main tests are in /inst/tests/tests.Rraw