add needed test functions