basic testing of data function