def tests