Refactor out timeout functionality into separate function
Use options defined in setup of tests
Add possibility to manually set timeout
Test that abort is not called before specified timeout
Remove redundant test data
Remove hardcoded duplication
Refactor to make request function more easy to read
Define stop method
Move stop method test to separate testcase

Refactor out setup and teardown to avoid duplication