added tests
added amd and common resolve