Added UT and doesnt fail when called from renderSource