replace assert.fail with assertEqual for maximum code coverage