Added nose tests
Added simple module __main__
Moved all tests to nose test modules.