Port the unit-tests to Faitout

This way the tests are running against faitout if possible, otherwise it defaults to the current behavior against sqlite.
`TypeError: exceptions must be old-style classes or derived from BaseException, not NoneType`