improve API test
merge URL params into env when calling before filters