Move tests to runtests.jl
Use Base.size and Base.length for new method definitions.