Type params
Add tests to verify state param functions properly