Add fetch tests and moved scheduler to a different application context