move test calls to main.ml