Testing and profiling example