[tests] Fix common unit tests