bugherd: port tests, fix loading problem

/cc @ianstormtaylor