fixup padding
use assertion for test