Wrote general test framework
Add scan to intScan and doubleScan (tentative finish)
Merge branch 'write-tests'