Prevent error in console when running tests