Completed each of the basic layout demos.
Added unit tests.