start of first test, and a pile of code