VG-1521: fix to handle workspace types
Replaced unit test for replace workspace path