refactor to using operator<<

add stltest