Move test/ directory to tesla/test.
Use the handy CMAKE_CURRENT_SOURCE_DIR.

Rather than trying to reproduce the same thing manually...