ATTDEF: added tests for flags.

Signed-off-by: bert <bert.timmerman@xs4all.nl>