Added expected condition to model integration test
Minor corrections in docs
Pruned unused test code