test cleanup

pep8
remove empty node_alignment test
use pytests.raises