Constructor test: Make test work even if CMAKE_INSTALL_PREFIX is not set

Change-Id: I06eef06a6bd8c66ff97da79103598c92a84ee5dd