Added tests, PEP8 fixes, PVResult outputs shortname fix
Added init