Add ak test, completing issue #256