updated tests and changed all routeparams to stateparams