Fix profile unit tests