testsuite: Fix tests for python 3

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
POSIX: Fix support for unicode files

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
debian: Add python-mock build dependency

Signed-off-by: Sol Jerome <sol.jerome@gmail.com>