Initial test spec and code in AMD form