Implemented the basic_test function, and added a couple of convenience functions.