test infrastructure, optional run
remove uncessary function check