add declare memory test to common makefile