added a few tests to confirm that several bugs have been fixed