Rewrote SiteLink test to not depends on the database

Also decreases complexity, increased readability and maintainability

And got rid of deprecated method usage

Change-Id: Ifbd141dcc41640fd9348558efdc8d82a5423be82
Merge "Rewrote SiteLink test to not depends on the database"