Added/Fixed tests for uploading datasets, evironmental layers and species traits. Fixed some code style throughout.