move test func to another js file