Fixed lock packages test

Cucumber test failed when more matched were found. The xpath expression
has been changed to return just the 1st match.