writing tests for definition functionality