Added simple test example adapted from original source.