SHDP-238 Fix store file naming with codec

File name is now set if codec is used together with
CodecFileNamingStrategy. Also added a simple
test case to verify this behaviour.