test for def