improved test to not hit database