readded build and test plugin hooks