Refactored selenium test setup and added a test

For getting a specific joke by id.