Fix read/write Parameters with tests

Signed-off-by: Jack Huey kitskub@gmail.com