Added more placeholder test spec files and lots of unit tests around common functionality.