tests: combine declaration and definition
examples: fixed missing kernel_pid_t declaration