Changed model to set the abbreviation to the ID if abbr. is missing.

AFDP-177
Added functional tests for the building scanner.

AFDP-177