Add (failing) tests for the profiling panel.

Refs #466.
Fix regression introduced in 87a7375.

Fix #466.
Test features depending on line_profiler.