Fix unit tests
Add Debian wheezy support