updated build and main to use tests-main