Added tests and chord inversions