fix integral test
add test_elements under unittest framework