working using embedded server in tests