Added unit attr

Added the unit attr to support flagged test runs.
Also cleaned up some PEP8
Increased test coverage for facts
Merge pull request #156 from shermdog/unit-tests

Increased test coverage for facts