Add tests for An+B