Move quicktests out of examples into test