Added store contorller and function tests