added getAmplitude and getDuration and their respective tests