Add the missing 'at_tests.cpp'. It's a bit rubbish, but most of the implementation details are tested elsewhere.