fix test cases where Resource not being properly closed
fix test cases where Resource not being properly closed

indera/bubbles,Stiivi/bubbles,indera/bubbles,bijoyabraham/bubbles,Stiivi/bubbles,bijoyabraham/bubbles