amf get*_history tests and related fixes