add apitest
changed the filldata to generalize it