Added tests to list instances by regexp

Change-Id: Id9cf2a946bbd8a40173923fdc5c850622d148081
Merge "Added tests to list instances by regexp"