Fixed tests to work with cmocka 0.4.1