Add some interval tests
Fix mistake in RR interval calculation