fixed an end-to-end test