update build and test rule