added some typedefs and tests with forced memory allocations