Address min/max deprecation warnings.

Replace with minimum and maximum.
Follow Julia conventions, move test.jl to runtests.jl