Fix test.
Adapt tests to Ubuntu 14.04.