added a check so that if --run-tests is selected it will trigger both build and run tests