[tests] Refactor C++ tests.

Move TestOnsetDetection class definition to separate
header file.

Add tests.cpp run all tests.
[tests] Whitespace cleanup.