rename main() methods to defineTests()

Rename `main()` to `defineTests()`, to reduce the number of entry points that a certain package manager will try and deploy.

@ussuri @dinhviethoa