Add tests for profiling.