Remove unused functions and add more test coverage

`size_x` -> `pixel_size_x` ect