simple test function implemented