test functions, revered for final build