profile fixes
fix compilation of tests