build now fails if tests fail. Also now tests run in correct order