fix test build configuration

test is now compiled with debug information
added missing include path and library
added missing dependency