how to implement custom tests