amCreateObj working and tested