add isEmpty to amd-test