Added resources dir. Added more tests.