added tests for dimension methods
fixed copy and paste bug in index_of method