Added textnote tests. Fixed beam stem direction bug.