Fix build. Use profile in test.