Fixed compilation of shared tests library