convert test utils file to js