Adding tests and initial plugin