added url tests and function tests