add aab test
tweak to work in python3
add test
friendlier assertion failures