moved testing code to tests/. More notes on what I've learned