added tests that check for errors in fig6 example