Make Database.IsNew behavior as expected in tests

Moved dynamic object check at beginning of method. So it will return
True in test PocoExpandoTests.IsNewReturnsTrue.