Added test local ui file and fixed small object bugs.