Moving more unit tests to github repo, fixed some formatting issues and style issues as well.