Added way to pass parameters through to ajax, tidied tests