Only build test if matlab was found