added testWhileIdle setting