Completed  fuctional tests