Cleaned up test code; added code to create and populate test table.