Test of lu decomposition working