Write Static Pages tests & fix warnings