fix for broken AWS records tests

see #2439