Index: trunk/tests/lualib_test/lualib_test.cc
===================================================================
--- trunk/tests/lualib_test/lualib_test.cc	(revision 61)
+++ trunk/tests/lualib_test/lualib_test.cc	(revision 62)
@@ -3,14 +3,37 @@
 #include <nv/lua/lua_glm.hh>
 #include <nv/logger.hh>
+#include <nv/types.hh>
+#include <nv/object.hh>
 #include <string>
 #include <iostream>
+#include <functional>
+
+struct test_struct
+{
+	std::string f;
+	int i;
+};
+
+NV_REGISTER_NAME( test_struct )
 
 int main(int, char* [])
 {
+	nv::type_database db;
+	nv::object::register_type( &db );
+
+	db.create_type<int>();
+	db.create_type<std::string>();
+	nv::type_field fields[] = { 
+		nv::type_field("f", &test_struct::f ),
+		nv::type_field("i", &test_struct::i ),
+	};
+	db.create_type<test_struct>().fields( fields );
+
+
 	nv::logger log(nv::LOG_TRACE);
 	log.add_sink( new nv::log_file_sink("log.txt"), nv::LOG_TRACE );
 	log.add_sink( new nv::log_console_sink(), nv::LOG_TRACE );
 	nv::load_lua_library();
-		
+	
 	NV_LOG( nv::LOG_NOTICE, "Logging started" );
 
@@ -38,5 +61,5 @@
 	luaL_dofile(lua_state, "init.lua");
 
-	while (true)
+	for (;;)
 	{
 		std::string input;
