Added contributed tests from obmarg.
Properly use return value in permanency/expiration test.
Fixed self.modified default value on session (fixes #20).