data: fix errors in data
add unit tests