add source for define tests