removing amdefine dependency from tests and uninstalling amdefine