Fixes #366 -  modify $add method to parse JSON and use $priority
Add test unit for $add meta fields $priority and $value