fixed bug in after_dispatch and configured url
less warning and more tests