Removed pointless import.

Why was I statically importing a function from the file I was already
in?
Added a test for booleanflags.
Clearer flagtype access.
WIP test for this flag.