Added tests for migrations handling of database defaults.