Merge "Adding tests for element/mesh getters. Fixing bugs found by tests." into graphics-dev