Two bugfixes in Entity.

Fix Entity::operator! and initialize Entity::id_ to invalid value by
default.

Add test to verify operator! and uninitialized Entity.
Suppress warnings about unused variables.