add assertions to profiling test

Missing assertion added in profiling tests and removed printlines.