adding a test that creates the data function from a class