fix bug in test 7, flesh out test 8.