test code cleanup
added variation tests
added nag definitions
added nag definitions
added nags tests
added nag def tests