fix test
add serializable
add (ternary) sum detection in scalar