Added test to build_*lua. Modified matrix min and max. Solved problems with tokens at join and copy componetns