Changes to the swapfile size

Performs the to_bytes command afterwards, so it's easier to define a specific swapfile size.
Silly copy-paste error
Adding test for custom swapfile size
Fixing spec from recent changes