refactor(clientsidescripts): use the testability api if available

Getting ready for version of Angular which will include the testability API.