Remove raptor-optimizer as a dependency and move some tests into raptor-optimizer