Cleaned up the approximation test functions.
Updated the linkage assembler to use the stax parser.