use the right meta_type in onSuccess
add some tests