moved tests to poly.rs