fix broken unit test; add unit test to elem
fix unit tests