Add tests for processprobs

Also added a readjson method in processprobs which is mostly duplicated from views.py, but reusable in tests. It'd be nice if the duplication can be removed at some later point.