add some minor testing code