Formatting test now passes
adds test for quitting, adds run loop method to library with implementation that makes test pass