Index: trunk/Nebulous/t/03_server_create_object.t
===================================================================
--- trunk/Nebulous/t/03_server_create_object.t	(revision 4915)
+++ trunk/Nebulous/t/03_server_create_object.t	(revision 5490)
@@ -3,10 +3,10 @@
 # Copryight (C) 2004-2005  Joshua Hoblitt
 #
-# $Id: 03_server_create_object.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $
+# $Id: 03_server_create_object.t,v 1.6 2005-11-09 01:31:07 jhoblitt Exp $
 
 use strict;
 use warnings FATAL => qw( all );
 
-use Test::More tests => 11;
+use Test::More tests => 13;
 
 use lib qw( ./t ./lib );
@@ -74,4 +74,19 @@
 Test::Nebulous->setup;
 
+{
+    my $uri = $neb->create_object( "foo", 1 );
+
+    ok( -e _get_file_path( $uri ), "class exists" );
+}
+
+Test::Nebulous->setup;
+
+eval {
+    $neb->create_object( "foo", 99 );
+};
+like( $@, qr/Invalid class/, "class doesn't exists" );
+
+Test::Nebulous->setup;
+
 eval {
     $neb->create_object();
Index: trunk/Nebulous/t/Test/Nebulous.pm
===================================================================
--- trunk/Nebulous/t/Test/Nebulous.pm	(revision 4915)
+++ trunk/Nebulous/t/Test/Nebulous.pm	(revision 5490)
@@ -1,5 +1,5 @@
 # Copyright (C) 2004  Joshua Hoblitt
 #
-# $Id: Nebulous.pm,v 1.6 2005-08-27 03:39:06 jhoblitt Exp $
+# $Id: Nebulous.pm,v 1.7 2005-11-09 01:31:07 jhoblitt Exp $
 
 package Test::Nebulous;
@@ -39,4 +39,7 @@
     $dbh->do( qq{ INSERT INTO volume VALUES (1,'node01',?) }, undef, 'file:' . $dir1 );
     $dbh->do( qq{ INSERT INTO volume VALUES (2,'node02',?) }, undef, 'file:' . $dir2 );
+
+    $dbh->do( qq{ INSERT INTO class VALUES (1, 0, "regular data") } );
+    $dbh->do( qq{ INSERT INTO class VALUES (2, 1, "special data") } );
 }
 
