Fixes for partial loading

- Fixed partial and parameter loading bug
- Added tests for partials