add assertions to profiling test