tests for A*