beginning of sort test, basic case